home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Online / SpeakFreely / src / blowfish / Makefile.ssl < prev    next >
Makefile  |  2000-05-18  |  2KB  |  105 lines

  1. #
  2. # SSLeay/crypto/blowfish/Makefile
  3. #
  4.  
  5. DIR=    bf
  6. TOP=    ../..
  7. CC=    cc
  8. CPP=    $(CC) -E
  9. INCLUDES=
  10. CFLAG=-g
  11. INSTALLTOP=/usr/local/ssl
  12. MAKE=        make -f Makefile.ssl
  13. MAKEDEPEND=    makedepend -fMakefile.ssl
  14. MAKEFILE=    Makefile.ssl
  15.  
  16. BF_ENC=        bf_enc.o
  17. # or use
  18. #DES_ENC=    bx86-elf.o
  19.  
  20. CFLAGS= $(INCLUDES) $(CFLAG)
  21.  
  22. GENERAL=Makefile
  23. TEST=bftest.c
  24. APPS=
  25.  
  26. LIB=$(TOP)/libcrypto.a
  27. LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cbc.c bf_cfb64.c bf_ofb64.c 
  28. LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cbc.o bf_cfb64.o bf_ofb64.o
  29.  
  30. SRC= $(LIBSRC)
  31.  
  32. EXHEADER= blowfish.h
  33. HEADER=    bf_pi.h bf_locl.h $(EXHEADER)
  34.  
  35. ALL=    $(GENERAL) $(SRC) $(HEADER)
  36.  
  37. top:
  38.     (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  39.  
  40. all:    lib
  41.  
  42. lib:    $(LIBOBJ)
  43.     ar r $(LIB) $(LIBOBJ)
  44.     sh $(TOP)/util/ranlib.sh $(LIB)
  45.     @touch lib
  46.  
  47. # elf
  48. asm/bx86-elf.o: asm/bx86-cpp.s asm/bx86unix.cpp
  49.     $(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o
  50.  
  51. # solaris
  52. asm/bx86-sol.o: asm/bx86-cpp.s asm/bx86unix.cpp
  53.     $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s
  54.     as -o asm/bx86-sol.o asm/bx86-sol.s
  55.     rm -f asm/bx86-sol.s
  56.  
  57. # a.out
  58. asm/bx86-out.o: asm/bx86-cpp.s asm/bx86unix.cpp
  59.     $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o
  60.  
  61. # bsdi
  62. asm/bx86bsdi.o: asm/bx86-cpp.s asm/bx86unix.cpp
  63.     $(CPP) -DBSDI asm/bx86unix.cpp | as -o asm/bx86bsdi.o
  64.  
  65. files:
  66.     perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  67.  
  68. links:
  69.     /bin/rm -f Makefile
  70.     $(TOP)/util/point.sh Makefile.ssl Makefile ;
  71.     /bin/rm -f des.doc
  72.     $(TOP)/util/point.sh ../../doc/blowfish.doc blowfish.doc ;
  73.     $(TOP)/util/mklink.sh ../../include $(EXHEADER)
  74.     $(TOP)/util/mklink.sh ../../test $(TEST)
  75.     $(TOP)/util/mklink.sh ../../apps $(APPS)
  76.  
  77. install:
  78.     @for i in $(EXHEADER) ; \
  79.     do  \
  80.     (cp $$i $(INSTALLTOP)/include/$$i; \
  81.     chmod 644 $(INSTALLTOP)/include/$$i ); \
  82.     done;
  83.  
  84. tags:
  85.     ctags $(SRC)
  86.  
  87. tests:
  88.  
  89. lint:
  90.     lint -DLINT $(INCLUDES) $(SRC)>fluff
  91.  
  92. depend:
  93.     $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
  94.  
  95. dclean:
  96.     perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  97.     mv -f Makefile.new $(MAKEFILE)
  98.  
  99. clean:
  100.     /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  101.  
  102. errors:
  103.  
  104. # DO NOT DELETE THIS LINE -- make depend depends on it.
  105.